package com.company;

import java.util.List;
import java.util.Map;
import java.util.Set;

/**
 * 第一个Spring程序，输出"反转的人生，如此惊艳！"
 */
public class HelloSpring {
    //定义hello属性，该属性的值通过Spring框架进行设置
    private String hello = null;

    private Integer id;
    private String name;
    private List<String> list;
    private Set<String> set;
    private Map<String,String> map;

    public List<String> getList() {
        return list;
    }

    public void setList(List<String> list) {
        this.list = list;
    }

    public Set<String> getSet() {
        return set;
    }

    public void setSet(Set<String> set) {
        this.set = set;
    }

    public Map<String, String> getMap() {
        return map;
    }

    public void setMap(Map<String, String> map) {
        this.map = map;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    /**
     * 输出方法，从Spring配置文件中获得属性并输出
     */
    public void print(){
        System.out.println("Spring say:," + this.getHello() + "!");
    }
    public String getHello(){
        return hello;
    }
    public void setHello(String hello){
        this.hello = hello;
    }
}
